﻿<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Style-Type" content="text/css" /><meta name="generator" content="Aspose.Words for .NET 15.1.0.0" />
	<title></title>
	<style type="text/css">
		.button {
	            background-color: #4CAF50;
	            border: none;
	            color: white;
	            padding: 15px 32px;
	            text-align: center;
	            text-decoration: none;
	            display: inline-block;
	            font-size: 16px;
	            margin: 4px 2px;
	            cursor: pointer;
	        }
	</style>
	<script src="__PUBLIC__/others/jquery.min.js"></script>
	<script src="__PUBLIC__/layer/layer_zh-cn.js"></script>
</head>
<body>
	<div>
        <button class="button" id='save'>生成PDF</button>
    </div>
	<div>
		<table cellspacing="0" cellpadding="0" style="border-collapse:collapse; margin:0 auto; width:482pt">
			<tr style="height:78.05pt">
				<td colspan="7" style="padding:0.75pt; vertical-align:middle; width:480.5pt"><p style="font-size:16pt; line-height:115%; margin:0pt 0pt 10pt; text-align:center"><span style="font-family:宋体; font-size:16pt; font-style:normal; font-weight:bold; text-decoration:none">南京市浦口区房屋建设工程白蚁预防（临时）证明</span></p>
				</td>
			</tr>
			<tr style="height:49.5pt"><td colspan="7" style="padding:0.75pt; vertical-align:middle; width:480.5pt"><p style="font-size:14pt; line-height:115%; margin:0pt 0pt 10pt; text-align:center"><span style="font-family:宋体; font-size:14pt; font-style:normal; text-decoration:none">苏宁浦蚁防字（<input name='input[]' value="" style="width: 30px">） 第 <input name='input[]' value="" style="width: 30px"> 号</span></p></td></tr>
			<tr style="height:54pt">
				<td rowspan="4" style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52.1pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; text-align:center"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">房屋建设工程基本信息</span></p></td>
				<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52.1pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">工程名称</span></p>
				</td>
				<td colspan="5" style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:373.3pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
					<span style="font-family:宋体; font-size:12pt; font-style:normal">&#xa0;
						{php}
							$proj_id = $input['proj_id'];
							$info = db('project')->alias('p')
								->join('organize o','p.org_id = o.id','left')
								->where('p.id',$proj_id)
								->field('p.proj_name,p.proj_address,o.name')->find();
							echo $info['proj_name'];
						{/php}
					</span></p>
				</td>
			</tr>
			<tr style="height:54pt">
				<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52.1pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">建设单位</span></p>
				</td>
				<td colspan="5" style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:373.3pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; text-align:center"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">&#xa0;{$info['name']}</span></p>
				</td>
			</tr>
			<tr style="height:54pt">
				<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52.1pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">工程座落</span></p>
				</td>
				<td colspan="5" style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:373.3pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
					<span style="font-family:宋体; font-size:12pt; font-style:normal">
						&#xa0;{$info['proj_address']}
					</span></p>
				</td>
			</tr>
			<tr style="height:54pt">
				<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52.1pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">建筑结构</span></p></td>
				<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:105.55pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
					<span style="font-family:宋体; font-size:12pt; font-style:normal">
						&#xa0;<input name='input[]' value="" style="width: 80px">
					</span></p>
				</td>
				<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52.1pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">建筑面积</span></p>
				</td>
				<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:105.55pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
					<span style="font-family:宋体; font-size:12pt; font-style:normal">
						&#xa0;<input name='input[]' value="" style="width: 60px"> 平
					</span></p>
				</td>
				<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52.1pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; text-align:center"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">幢数</span></p>
				</td>
				<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
					<span style="font-family:宋体; font-size:12pt; font-style:normal">&#xa0;
						{php}
							$case_id = input('case_id');
							$build = db('case_list')->alias('a')->join('case_build_list b','a.id = b.case_id','left')
								->join('proj_building c','b.build_id = c.id','left')->where('a.id',$case_id)
								->column('c.police_num');
							echo count($build);	
						{/php}
					</span></p>
				</td>
			</tr>
			<tr style="height:42pt">
				<td colspan="7" style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:480.5pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0"><span style="font-family:宋体; font-size:12pt; font-style:normal">&#xa0;</span></p>
				</td>
			</tr>
			<tr style="height:54pt"><td rowspan="3" style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52.1pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; text-align:center"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">白蚁预防工程基本信息</span></p></td>
				<td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52.1pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; text-align:center"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">签约日期</span></p>
				</td>
				<td colspan="5" style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:373.3pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:center; widows:0">
					<span style="font-family:宋体; font-size:12pt; font-style:normal">
						&#xa0;<input name='input[]' value="">
					</span></p>
				</td>
			</tr><tr style="height:54pt"><td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52.1pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; text-align:center"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">包治期</span></p></td><td colspan="5" style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:373.3pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; text-align:center"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">壹拾伍年</span></p></td></tr><tr style="height:54pt"><td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52.1pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; text-align:center"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">实施单位</span></p></td><td colspan="5" style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:373.3pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; text-align:center"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">南京市浦口区白蚁防治所</span></p></td></tr><tr style="height:108.05pt"><td style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:52.1pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; text-align:center"><span style="font-family:宋体; font-size:12pt; font-style:normal; text-decoration:none">备注</span></p></td>
				<td colspan="6" style="border-bottom-color:#000000; border-bottom-style:solid; border-bottom-width:0.75pt; border-left-color:#000000; border-left-style:solid; border-left-width:0.75pt; border-right-color:#000000; border-right-style:solid; border-right-width:0.75pt; border-top-color:#000000; border-top-style:solid; border-top-width:0.75pt; padding:0.38pt; vertical-align:middle; width:426.9pt"><p style="font-size:12pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; widows:0">
					<span style="font-family:宋体; font-size:12pt; font-style:normal">
						&#xa0;<input name='input[]' value="" style="width: 200px;height:50px">
					</span></p>
				</td></tr><tr style="height:0pt"><td style="width:53.6pt; border:none"></td><td style="width:53.6pt; border:none"></td><td style="width:107.05pt; border:none"></td><td style="width:53.6pt; border:none"></td><td style="width:107.05pt; border:none"></td><td style="width:53.6pt; border:none"></td><td style="width:53.5pt; border:none"></td></tr></table><p style="font-size:10.5pt; line-height:115%; margin:0pt 0pt 10pt; orphans:0; text-align:justify; widows:0"><span style="font-family:Calibri; font-size:10.5pt">&#xa0;</span></p></div>
            <script>
			    $('#save').on('click',function(){
			        var data = {:json_encode($input)};
			        $(this).hide();
			        var inputs = $("input");
			        inputs.each(function(){
			            var value = $(this).val();
			            $(this).replaceWith('<span>'+value+'</span>');
			        });
			        var html = $("html").html();
			        
			        $.post('{:url("Upload/tempHandle")}',{data:data,html:html},function(res){
			            layer.msg(res.msg);
			            if (res.code == 1){
			                setTimeout(function(){
			                    parent.location.reload();
			                },1500);
			            } else {
			                $(this).show();
			            }
			        })
			    });
		</script>
	</body>
</html>